package com.lanchetech.dao;
import com.lanchetech.bean.request.PageReq;
import org.apache.ibatis.annotations.Param;
import java.util.List;

import com.lanchetech.entity.AdminRole;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AdminRoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AdminRole record);

    int insertSelective(AdminRole record);

    AdminRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AdminRole record);

    int updateByPrimaryKey(AdminRole record);

    List<AdminRole> findAll();

    List<AdminRole> findAllPage(PageReq pageReq);

    AdminRole findOneByName(@Param("name")String name);
}